﻿using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Lamex.Library
{
    public partial class frmExeForm : frmBaseChild
    {
        public frmExeForm(string pathName,string titleName)
        {
            InitializeComponent();
            PanelControl pl = new PanelControl();
            pl.Controls.Clear();
            pl.Dock = DockStyle.Fill;
            ExetoWinform fr = new ExetoWinform(pl, titleName);
            
            this.Text = titleName;
            fr.Start(pathName);
            this.Controls.Add(pl);
        }

        public frmExeForm(string pathName, string titleName,string AppTitel)
        {
            InitializeComponent();
            PanelControl pl = new PanelControl();
            pl.Controls.Clear();
            pl.Dock = DockStyle.Fill;
            ExetoWinform fr = new ExetoWinform(pl, titleName, AppTitel);
            fr.Start(pathName);
            this.Controls.Add(pl);
            this.Text = titleName;
        }
    }
}
